package com.kun.portal.webframe.po;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2018/5/15.
 */

@Entity
@Table(
        name = "fbo_contrract_manage"
)
public class ContractManagePo implements Serializable{

    public String getContractManageId() {
        return contractManageId;
    }

    public void setContractManageId(String contractManageId) {
        this.contractManageId = contractManageId;
    }

    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }

    public String getContractAgreemen() {
        return contractAgreemen;
    }

    public void setContractAgreemen(String contractAgreemen) {
        this.contractAgreemen = contractAgreemen;
    }

    public String getAgreementUnit() {
        return agreementUnit;
    }

    public void setAgreementUnit(String agreementUnit) {
        this.agreementUnit = agreementUnit;
    }

    public Integer getAgreementNumber() {
        return agreementNumber;
    }

    public void setAgreementNumber(Integer agreementNumber) {
        this.agreementNumber = agreementNumber;
    }

    public Integer getResidueDegree() {
        return residueDegree;
    }

    public void setResidueDegree(Integer residueDegree) {
        this.residueDegree = residueDegree;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Id
    @GeneratedValue(generator = "contract_manage_id")
    @GenericGenerator(name = "contract_manage_id", strategy = "uuid")
    @Column(name = "contract_manage_id", length = 32, nullable = false)
    private String contractManageId;//id

    @Column(name = "contractn_number", length = 100)
    private String contractNumber;//合同编号

    @Column(name = "contract_agreemen", length = 100)
    private String contractAgreemen;//合同协议

    @Column(name = "agreement_unit", length = 100)
    private String agreementUnit;//协议单位

    @Column(name = "agreement_number", length = 100)
    private Integer agreementNumber;//协议次数

    @Column(name = "residue_degree", length = 100)
    private Integer residueDegree;//剩余次数

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Temporal(TemporalType.DATE)
    @Column(name = "start_date", length = 100)
    private Date startDate;//起始日期

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Temporal(TemporalType.DATE)
    @Column(name = "end_date", length = 100)
    private Date endDate;//终止日期
}
